package cn.com.bluemoon.daps.sync.vo.model2prod;

import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Jarod.Kong
 * @date 2021/7/13 15:01
 */
@ApiModel(description = "发布同步-同步预发布/生产-执行入参")
@Data
public class SyncModelExecParamVo implements Serializable, UserPermissionApi<String> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "模型id", example = "string")
    @NotNull(message = "模型id不可为空")
    private String modelId;

    @ApiModelProperty(value = "发布同步列表行id", example = "string")
    @NotNull(message = "发布同步列表行id不可为空")
    private String taskId;

    /**
     * @return 获取mvc传输中对应模型的id
     */
    @Override
    public String getUserPermissionKeyValue() {
        return getModelId();
    }
}
